<!DOCTYPE html>
<html>

{include file="Public:header" /}
<style>
.chat-view .ibox-content{
	padding: 15px 20px 20px;
}
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">

        <div class="row">
            <div class="col-sm-12">

                <div class="ibox chat-view">

                    <div class="ibox-title">
                        <!-- <small class="pull-right text-muted">最新消息：2015-02-02 18:39:23</small> --> 
                        	<h5>评论详情</h5>
                        	<button onclick="history.go(-1);" style="margin-top: -6px;" class="btn btn-primary pull-right"><i class="fa fa-arrow-left"></i> 返回</button>
                    </div>


                    <div class="ibox-content">

                        <div class="row">

                            <div class="col-md-12 ">
                                         <div class="chat-discussion" style="height:400px;">

                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>用户评论</h5>
                        <div class="ibox-tools">
                            <span class="label label-warning-light">2015-02-02 18:39:23</span>
                        </div>
                    </div>
                    <div class="ibox-content">

                            <div class="feed-activity-list">
                                <div class="feed-element">
                                    <a href="profile.html" class="pull-left">
                                        <img alt="image" class="img-circle" src="__PUBLIC__/Admin/img/profile.jpg">
                                    </a>
                                    <div class="media-body ">
                                        <small class="pull-right">{$comment['ip_address']}</small> 
                                        <strong>{$comment['user_name']}</strong>
                                        <br>
                                        <small class="text-muted">{$comment['add_time']|date="Y-m-d H:i:s",###}</small>
										<div class="well">
											{$comment['content']|htmlspecialchars_decode}                                        
                                        </div>
                                    </div>
                                </div>
                                {foreach name="reply" item="reply"}
                                    <div class="feed-element">
                                    <a href="profile.html" class="pull-left">
                                        <img alt="image" class="img-circle" src="__PUBLIC__/Admin/img/profile.jpg">
                                    </a>
                                    <div class="media-body ">
                                         <small class="pull-right">{$reply['ip_address']}</small> 
                                        <strong>管理员</strong>
                                        <br>
                                        <small class="text-muted">{$reply['add_time']|date="Y-m-d H:i:s",###}</small>
										<div class="well btn-primary">
                                            {$reply['content']|htmlspecialchars_decode}       
                                        </div>
                                    </div>
                                </div>
                                {/foreach}
                                
                            </div>
                    </div>
            </div>
                                </div>

                            </div>

                        </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="form-group">
									<form action="__URL__/detail?id={$comment['id']}" method="post" id="defaultForm" />
                                    <div class="form-group">
                                        <textarea class="form-control message-input" name="content" placeholder="请输入回复内容"></textarea>
                                    </div>
                                    <div class="text-right">
	                                    <button type="submit" class="btn btn-sm btn-primary"><strong>回复消息</strong>
	                                    </button>
                               		</div>
									</form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
  {include file="Public:footer" /}
 <script>
  $(document).ready(function() {
    /**
     * 下面是进行插件初始化
     * 你只需传入相应的键值对
     * */
    $('#defaultForm').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {/*输入框不同状态，显示图片的样式*/
            	  valid: 'glyphicon glyphicon-ok',
                  invalid: 'glyphicon glyphicon-remove',
                  validating: 'glyphicon glyphicon-refresh'
            },
            fields: {/*验证*/
            	content: {/*键名username和input name值对应*/
                    message: '回复消息验证失败',
                    validators: {
                        notEmpty: {/*非空提示*/
                            message: '回复消息不能为空'
                        },
                        stringLength: {/*长度提示*/
                            min: 2,
                            max: 100,
                            message: '回复消息长度必须在2到30之间'
                        }/*最后一个没有逗号*/
                    }
                }
               
            }
            // 还有一个比较常用的就是submitHandler属性，它对应着提交按钮的事件方法。
            // submitHandler: function (validator, form, submitButton) {
                //alert("submit");
               /*  var menu_name = $("input[name='menu_name']").val();
                var link = $("input[name='link']").val();
                var ico = $("input[name='ico']").val();
                $.ajax({
                    url : '__URL__/addMenu',
                    type : 'get',
                    data : {'menu_name' : menu_name, 'link' : link, 'ico':ico},
                    dataType : 'json',
                    success : function(data){
                      alert(data.message);
                    }
                }); */
           // }
        });
});
  
  </script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/chat_view.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:48 GMT -->
</html>
